/* 
 * File:   Input.h
 * Author: max
 *
 * Created on October 12, 2012, 12:29 AM
 */

#ifndef INPUT_H
#define	INPUT_H

#include <istream>
using namespace std;

#define INIT_INPUT_FAIL 1

namespace TP {

    class Input{

    public:

        Input ();
        
        Input(int argc, char* argv[]) throw (int);

        virtual ~Input();
        
        void Inicializar () throw (int);
        
        void Liberar ();

        istream& Stream () const;
        
    private:
        string fileName;
        istream* stream;

    };
}

#endif	/* INPUT_H */